<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo ($user[name]); ?></title>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="/public/css/css.css?t=3"/>
</head>
<body>
<div>
    <div class="banner focus" id="focus">
        <div class="hd">
            <ul>

            </ul>
        </div>
        <div class="bd">
            <ul>
                <?php if(is_array($list)): foreach($list as $k=>$vo): if($k < 3): ?><li><a href="<?php echo U('index/detail',array('id'=>$vo['id']));?>"><img _src="<?php echo ($vo['thumb']); ?>" width="100%"></a></li><?php endif; endforeach; endif; ?>

            </ul>
        </div>
    </div>
    <div class="orderlist" style="top:44px;bottom:56px">
        <div class="scroller">
            <div class="scroller_content">
                <ul class="list" >
                    <?php if(empty($list)): ?><li style="height: 100%;text-align: center;">
                            暂时没有数据
                        </li><?php endif; ?>
                    <?php if(is_array($list)): foreach($list as $key=>$vo): ?><li>
        <a href="<?php echo U('index/detail',array('id'=>$vo['id']));?>">
            <div class="item">
                <div class="img">
                    <img src="<?php echo getThumb($vo['thumb'],'a');?>" width="90%">
                </div>
                <div class="desc">
                    <div class="tit"><?php echo ($vo['title']); ?></div>
                    <div class="time"><?php echo date("m月d日 H:i",$vo['updatetime']);?></div>
                    <div class="content"><?php echo ($vo['description']); ?></div>
                </div>
            </div>
        </a>
    </li><?php endforeach; endif; ?>
                </ul>

            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/public/js/TouchSlide.1.1.js"></script>
<script>
    TouchSlide({slideCell: "#focus", mainCell: ".bd ul",titCell:".hd ul",  effect: "leftLoop",
        autoPlay:true,//自动播放
        autoPage:true, //自动分页
        switchLoad:"_src" //切换加载，真实图片路径为"_src"
     });
</script>
</body>
</html>